package com.itheima.sh.b_method_02;

public class MethodTest01 {
        //
        public static void main(String[] args) {
                odd(10);
        }

        //1.自定义方法求奇偶性
        public static void odd(int nummber) {
                if (nummber % 2 == 0) {
                        System.out.println(nummber + "是偶数");

                } else {
                        System.out.println(nummber + ":是奇数");
                }
        }
}